package com.chixing.day12.Factory;
//选择实现
public class TestFactory {
    public static void main(String[] args) {
        PhoneFactory factory = new PhoneFactory();
        Phone phone = factory.getPhone(0);
        //Phone是接口,只有方法,没有方法实现
        //具体call() sendMsg() takePhoto() 实现 都 【封装在】实现子类中
        //可以保护业务内部实现的安全性
        phone.call();
        phone.sendMsg();
        phone.takePhoto();
    }
}
